package com.common.constant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "luya.jwt")
@Data
public class JwtProperties {

    /**
     * 管理员登录生成jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;
    private String adminIdName;

    /**
     * 普通用户登录生成jwt令牌相关配置
     */
    private String webSecretKey;
    private long webTtl;
    private String webTokenName;
    private String webIdName;
}
